package com.sparrow.mvc.ui;

public class JLable extends JWebBodyControl {

	private String forCtrl;
	/**
	 * 
	 */
	private static final long serialVersionUID = 7885097366405702047L;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getForCtrl() {
		return forCtrl;
	}

	public void setForCtrl(String forCtrl) {
		this.forCtrl = forCtrl;
	}
	@Override
	public String setTagNameAndGetTagAttributes() {
		super.setTagName("Label");
		if (this.getForCtrl() != null && this.getForCtrl().trim() != "") {
			return String.format(" for='%1$s' ", this.getForCtrl());
		} else {
			return "";
		}
	}
}
